﻿@model yq.Model.Logic.UserLogin
<div class="thumbnail">
    <div class="caption">
        <h5>@Model.Account</h5>
        <p>
            您可以为用户添加多个登录账号。</p>
        <p>
           <a href="@Url.Action("ReatLogin", new { logId = @Model.Rowid })" alt='确认重置密码？' onclick="return $.confimSubmit(this,$.ReatLogin)" class="btn btn-primary">
                重置密码</a> 
          <a href="@Url.Action("DelLogin", new { logId = @Model.Rowid })" alt='确认删除账号？' onclick="return $.confimSubmit(this,$.DelLogin)" class="btn btn-danger">
          删除账号</a> 
                    
          <a id="acloseEdit" href="#" class="btn" onclick="return closeEdit(this)">取消</a></p>
    </div>
</div>
<script>
    function closeEdit(obj)
    {
        getCurrentDialog(obj).close();
        return false;
    }


    $.DelLogin = function (data)
    {
            getCurrentDialog($("#acloseEdit")).close();
            $.tips("操作成功");
            $("#UserLogin_@(Model.Rowid)").hide();
    }

    $.ReatLogin = function (data)
    {
      $.alert("密码已重置为："+data.Value);
    }
  
</script>
